package net.zisen.cloud.goods.service;

import net.zisen.cloud.base.msg.ResultMsg;
import net.zisen.cloud.goods.model.Goods;

/**
 * @author tim/278002989@qq.com
 * @Classname GoodsService
 * @Description TODO
 * @Date 2019-05-17 17:26
 */
public interface GoodsService {

    /**
     * 获取商品
     *
     * @param goodsId
     * @return
     */
    Goods getById(Long goodsId);

    /**
     * 更新商品库存
     *
     * @param goodsId
     * @param quality
     * @return
     */
    ResultMsg updateQuality(Long goodsId, Integer quality);

}
